﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IntroduceCompany.Singleton;

namespace IntroduceCompany.Models
{
    public class RoleModels
    {


        /// <summary>
        /// Get list of role except roleID = 1 (superadmin)
        /// </summary>
        /// <returns></returns>
        internal IQueryable<Role> GetRoleList()
        {
            return DataSingleton.GetInstance().Roles.Where(r => r.RoleID != 1);
        }
    }
}